﻿
using DotNetUI.Controls;
using DotNetUI.Models;

namespace System
{
    public static class ChatInfoExtension
    {
        /// <summary>
        /// 设置代码
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="logger"></param>
        /// <param name="content"></param>
        /// <param name="langugage"></param>
        /// <returns></returns>
        public static T SetCode<T>(this T logger, string content, Langugage langugage) where T : IChatLog
        {
            logger.Content = content;
            logger.HightLight = langugage;
            return logger;
        }
    }
}
